package cn.lizemin.share.origin.entity;

/**
 * @author lzm
 * @version 1.0
 * @description: 游戏图块类
 * @date 2022/5/17 11:21
 */
public class Tile {

//    图块所用的材料图
    private String image;

//    图块的坐标
    private int x, y;

    public Tile(String image,int x,int y) {
        this.image = image;
        System.out.println("从磁盘加载【" + image + "】图片，耗时半秒。。。");
        this.x = x;
        this.y = y;
    }

    public void draw() {
        System.out.println("在位置【" + x + ":" + y + "】上绘制图片：【" + image + "】");
    }


}
